<template>
    <div class="authorization">
        <headerNav title="支付宝登录"/>
        
    </div>
</template>

<script>
import {checkAuth } from "../../api/user.js";
export default {
    name:'password',
    data(){
        return{
            
        }
    },
    methods:{
        
    },
    created(){
        checkAuth({
            "authCode":this.$route.query.auth_code,
            "authTypeEnum": "ALI_AUTH",
            "webSourceEnum": "H5_WEB"
        }).then(response=>{
            if(response.retCode=="200"){
                let obj = {
                    token:response.data,
                    user:"-"
                }
                localStorage.setItem("userInfo",JSON.stringify(obj));
                this.$router.push({ name: "" });
            }
        });
    },
}
</script>

<style lang="less" scoped> 

</style>
